/*
 * $Header: $
 */
package net.frankish.moviebank.back;

import java.io.Serializable;



/**
 *
 * <p>Title: $RCSfile: PersistentBean.java,v $</p>
 * File: PersistentBean.java
 * Project: JCharacter
 * @author Frankish
 * @version $Revision:  $
 */
public abstract class PersistentBean implements Serializable{
	private static final long serialVersionUID = 1L;

//	private transient JCharacterPersistenceManager manager = null;
	private Long key =  null;
	public abstract void copyData(PersistentBean bean);

	public PersistentBean(){
//		this.manager = JCharacterPersistenceManager.getInstance();
	}

	public Long getKey(){
		return key;
	}
	public void setKey(Long key){
		this.key = key;
	}

	public void store() throws Exception{
		PersistenceManager.getInstance().store(this);
	}
}
